
<div id="sidebar">
	
	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Side Bar') ) : ?>
	
	<div class="box box-categories">
		<h3>CATEGORY</h3>		
		<div class="interior">
			<ul>
			<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
			</ul>
		</div>
	</div>

	<div class="box box-recentposts">
		<h3>RECENT POSTS</h3>		
		<div class="interior">
			<ul>
			<?php get_archives('postbypost', 5); ?>
			</ul>
		</div>
	</div>
	
	<div class="box box-recentcomments">
		<h3>RECENT COMMENTS</h3>		
		<div class="interior">
			<?php themefunction_recentcomments(); ?>
		</div>
	</div>
	
	<?php endif; ?>
	
	<div class="box box-search">
		<h3>SEARCH</h3>		
		<div class="interior">
			<form id="searchform" method="get" action="http://paddsolutions.com/demo/">
				<input type="text" name="s" id="s" size="15" value="" />
				<input type="submit" value="Search" />
			</form>
		</div>
	</div>
	<div class="box box-rss">
		<h3><a href="">RSS</a></h3>		
	</div>
</div>
